Refine Zod schema types for record keys, enhance client connection er…#1698
Refine Zod schema types for record keys, enhance client connection er…#1698sid293 wants to merge 2 commits intomodelcontextprotocol:v1.xfrom
Conversation
…ror handling with proper cleanup, and improve Zod compatibility utilities.
|
commit: |
|
Thanks for this. Could you split the The other changes here are v1.x-specific: |
Fixed connection resource leaks when Client.connect() fails during transportation or initialization. Also addressed several Zod v4 compatibility issues and test timeouts.
Motivation and Context
How Has This Been Tested?
test/client/index.test.tsspecifically verifying thattransport.close()is called ifconnect()fails.protocol.test.tsandtaskLifecycle.test.ts.pnpm test.Breaking Changes
None
Types of changes
Checklist
Additional context